package com.fin.zw.aiqas.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.Table;
import org.springframework.data.annotation.Transient;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
@Table(appliesTo="rule_type", comment="规则分类表")
@Data
public class RuleType extends BaseEntity{
    @Column(columnDefinition = "varchar(100) COMMENT '规则分类名称'")
    private String name;

    @Column(columnDefinition = "varchar(200) COMMENT '规则分类说明'" )
    private String remark;

    @ApiModelProperty("该分类下面是否含有规则")
    @Transient
    private Boolean hasRule;
}
